Skip to content

Download Type Endpoint#44

Closed
ahmedelbatal1 wants to merge 2 commits into
develop-backendfrom
Fix-Demo
Closed

Download Type Endpoint#44
ahmedelbatal1 wants to merge 2 commits into
develop-backendfrom
Fix-Demo

Conversation

@ahmedelbatal1

Copy link
Copy Markdown

Summary

Test plan

  • dotnet test backend/CCE.sln green
  • pnpm nx run-many -t lint,test green
  • If API surface changed: ./scripts/check-contracts-clean.sh green
  • If UI changed: pnpm nx run-many -t e2e (web-portal-e2e + admin-cms-e2e) green
  • Manual smoke notes (if any):

Security checklist

  • No new secrets / credentials in code
  • AuthN / AuthZ impact considered
  • Input validation on new endpoints
  • Audit-log entry for new state-changing operations

BRD traceability

Screenshots / output (optional)

- Added DownloadType enum (Asset, Image) in CCE.Domain.Content.
- Created IDownloadService, AssetDownloadService, MediaDownloadService, and DownloadServiceFactory in CCE.Application.Content.Download.
- Created DownloadEndpointExtensions with shared MapDownloadEndpoints() in CCE.Api.Common.Extensions.
- Registered download services in DependencyInjection.cs.
- Replaced old asset download endpoints in External and Internal AssetEndpoints.cs with shared implementation.
- Replaced old media download endpoint in MediaPublicEndpoints.cs with shared implementation.
- External: /api/download/{id}?type=asset|image
- Internal: /api/admin/download/{id}?type=asset|image
@Rashed99Azm

Copy link
Copy Markdown
Collaborator

merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants